home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13954 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: solon.com!not-for-mail
  2. From: lph@lvld.hp.com (Les Hammer)
  3. Newsgroups: comp.lang.c,comp.lang.c.moderated,hp.unix,comp.sys.hp.apps,comp.sys.hp.hpux
  4. Subject: Re: C coding problem
  5. Followup-To: comp.lang.c,comp.lang.c.moderated,hp.unix,comp.sys.hp.apps,comp.sys.hp.hpux
  6. Date: 10 Apr 1996 20:04:20 -0500
  7. Organization: Hewlett-Packard -=- Loveland, Colorado
  8. Sender: clc@solutions.solon.com
  9. Approved: clc@solutions.solon.com
  10. Message-ID: <4khlqk$t6a@solutions.solon.com>
  11. References: <4ianbf$h86@solutions.solon.com> <4io1io$no4@solutions.solon.com> <4j06na$808@solutions.solon.com> <4jttan$3gf@solutions.solon.com> <4jv7n3$d8o@solutions.solon.com> <4k60dr$abu@solutions.solon.com>
  12. NNTP-Posting-Host: solutions.solon.com
  13. X-Newsreader: TIN [version 1.2 PL1.4]
  14.  
  15. Kazimir Kylheku wrote:
  16. > Niall Smart <nsmart@indigo.ie> wrote:
  17. >  >
  18. >  >>: I recently wrote a loop that went like this:
  19. >  >
  20. >  >>: while (p < end_p)
  21. >  >>:    ++*p++;
  22. > I wouldn't hire a C maintainer who didn't know the basic 
  23. > precedence rules of the C language sufficiently well to 
  24. > know what ++*p++ does, 
  25.  
  26. The program maintainer may be hired for other skills--that is, they know
  27. the subject of what the program is supposed to do, whether it be a banking
  28. skill, inventory of production, etc..  Not every programmer is primarily
  29. a programmer.
  30.  
  31. But then, a well placed comment about this section of code should help.
  32.  
  33. And it shouldn't break so the maintainer shouldn't ever have to touch it,
  34. right?  :-)
  35.  
  36. Regards,
  37.  
  38. Les
  39.